#ifndef _______TD__PROJECT__AUG__2007_______
#define _______TD__PROJECT__AUG__2007_______

#include	<windows.h>	// for the predefined stuff for windows
#include	<tchar.h>
#include	"resource.h"

class Utility
{
private:
	HWND hwnd;
	OPENFILENAME ofn;
	TCHAR szFileName[MAX_PATH];
public:
	Utility(HWND handler):hwnd(handler)
	{
		ZeroMemory(&ofn, sizeof(ofn));	// initialize the stucture
		*szFileName = '\0';
	}

	const TCHAR * GetFileName() const
	{
		return szFileName;
	}

	void DoFileOpen();
	void DoFileSave();

private:
	BOOL LoadTextFileToEdit(TCHAR * pszFileName);
};

#endif //_______TD__PROJECT__AUG__2007_______